<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户个人资料</title>
    <jsp:include page="commons/static.jsp" />
    <link type="text/css" rel="stylesheet" href="/static/css/userForm.css">
</head>
<body>
<jsp:include page="commons/header.jsp" />

<form enctype="multipart/form-data" class="userForm" action="/blog/user/profile" method="POST">
    <h4> 修改个人资料 </h4>
    <div class="user_avatar">
        <img  src="${user.avatar}" alt="">
    </div>
    <div>
        <label for="">账户</label>
        <input type="text" value="${user.username}" disabled>
    </div>

    <div>
        <label for="">密码</label>
        <input type="password" name="password" placeholder="空值表示不修改密码">
    </div>

    <div>
        <label for="">昵称</label>
        <input type="text" name="nickname" value="${user.nickname}">
    </div>
    <div>
        <label for="">头像</label>
        <input type="file" name="avatar" >
    </div>

    <div>
        <button>保存修改</button>
    </div>


</form>

</body>
</html>
